from odoo import http

class MyModuleController(http.Controller):
    @http.route('/echarts/chart_data', type='json', auth='user')
    def get_chart_data(self):
        # 这里你可以添加逻辑从数据库获取数据
        data = {
            'xAxis': ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"],
            'series': [5, 20, 36, 10, 10, 20]
        }
        return data
